<template>
<div>
  <h3>
    divA类 {{msg}}:{{abs}}
    <button @click="onAbs">修改cmj</button>
  </h3>
</div>
</template>

<script>
export default {
  name: "DivA",
  data(){
    return{
      msg:"2323"
    }
  },
  props:['abs'],
  methods:{
    onAbs(){
      console.log('触发事件')
      this.$emit('onAbs','cmj')
    }
  }
}
</script>

<style scoped>

</style>